package com.googlecode.astoolkit.model {
	
	import com.googlecode.astoolkit.modules.browser.Browser;
	import com.googlecode.astoolkit.modules.content.model.ParamsObject;
	
	import flash.events.Event;

	public class BrowserEvent extends Event {
		
		public static const PATH_CHANGED:String = 'browserPathChanged';
		public static const PARAMS_CHANGED:String = "browserParamsChanged";
		
		private var _path:String;
		private var _pathNames:Array;
		private var _params:ParamsObject;

		public function BrowserEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			_path = Browser.getInstance().path;
			_pathNames = Browser.getInstance().pathNames;
			_params = Browser.getInstance().params
		}
		
		//
		public function get path():String{
			return _path;
		}
		
		//
		public function get pathNames():Array{
			return _pathNames;
		}
		
		//
		public function get params():ParamsObject{
			return _params;
		}

	}
}